package com.zhoug.demo.player;

import com.zhoug.common.beans.BaseBean;
import com.zhoug.demo.player.http.DataManager;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: zhoug
 * @since: 2025-06-25
 */
public class Monitor extends BaseBean {
    private String id;
    private String name;
    private String url;


    public static List<Monitor> getMonitors() {
        int serverType = DataManager.getServerType();
        List<Monitor> list = new ArrayList<>();
        switch (serverType) {
            case DataManager.SERVER_NAN_NING: //南宁
                list.add(new Monitor("4792047646733448016", "广西骨伤医院食堂_烹饪区_1"));
                list.add(new Monitor("4991026485903691136", "广西骨伤医院食堂_切配区_1"));
                list.add(new Monitor("4928836785980077036", "南宁师范大学（建政校区）食堂_配餐区_1"));
                list.add(new Monitor("5656631706074753404", "南宁师范大学（建政校区）食堂_洗消区_1"));
                list.add(new Monitor("5702587398681174997", "南宁市兴宁区昆仑镇中心学校昆仑教学点切配区97135265147"));
                list.add(new Monitor("4967493003789186193", "广西艺术学校北湖校区综合楼一楼食堂NVR_3"));
                list.add(new Monitor("5608528771202956559", "南宁市武鸣区妇幼保健院食堂-切配区-97134808381_1"));
//                list.add(new Monitor("xxx", "xx"));

                break;
            case DataManager.SERVER_KYQQ: //科右前旗
                //        list.add(new Monitor("xxx", "xxx", "xxx"));
                break;
            case DataManager.SERVER_GUI_ZHONG: //桂中大药房
                //        list.add(new Monitor("xxx", "xxx", "xxx"));
                break;
            case DataManager.SERVER_mclz3: //明厨亮灶3.0汇聚平台
                //        list.add(new Monitor("xxx", "xxx", "xxx"));
                break;
            case DataManager.SERVER_NMG: //内蒙古平台
//        list.add(new Monitor("xxx", "xxx", "xxx"));

                break;

        }


        list.add(new Monitor("时钟(hls-h264)", "时钟(hls-h264)", "http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8"));
        list.add(new Monitor("浙江视频(mp4-h264)", "浙江视频(mp4-h264)", "https://v-cdn.zjol.com.cn/276982.mp4"));
        list.add(new Monitor("浙江在线(mp4-h264)", "浙江在线(mp4-h264)", "https://v-cdn.zjol.com.cn/276984.mp4"));
        list.add(new Monitor("风景(rtsp-h264)", "风景(rtsp-h264)", "rtsp://stream.strba.sk:1935/strba/VYHLAD_JAZERO.stream"));
        list.add(new Monitor("蒙古包(rtsp-h264)", "蒙古包(rtsp-h264)", "rtsp://196.21.92.82/axis-media/media.amp"));
        list.add(new Monitor("吃鸡(rtmp-h264)", "吃鸡(rtmp-h264)", "rtmp://liteavapp.qcloud.com/live/liteavdemoplayerstreamid"));
        list.add(new Monitor("xxx", "钢铁之泪(hls-h264)", "https://demo.unified-streaming.com/k8s/features/stable/video/tears-of-steel/tears-of-steel.ism/.m3u8"));
//        list.add(new Monitor("xxx", "xxx", "xxx"));
        return list;
    }

    public Monitor(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public Monitor(String id, String name, String url) {
        this.id = id;
        this.name = name;
        this.url = url;
    }

    public Monitor() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
